<template>
	<view>
		<swiper class="swiper" indicator-dots="true" duration="500" autoplay="true" interval="5000">
			<swiper-item class="swiper-item">
				<!-- 欢迎进入-引导页a！ -->
				<image style="width: 100%; height: 100%; " src="../../static/welcome/wel1.png"></image>
			</swiper-item>
			<swiper-item class="center swiper-item">
				<image style="width: 100%; height: 100%; " src="../../static/welcome/wel2.png"></image>
			</swiper-item>
		</swiper>
		<view @click="toIndex" class="center bu-sty" style="">
			进入使用
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		computed: {
			...mapState(['city', 'height', "start", "tabList", 'token']),
		},
		data() {
			return {

			}
		},
		methods: {
			toIndex() {
				if (!this.token) {
					uni.navigateTo({
						url: '../login/index'
					})

				} else {
					uni.navigateTo({
						url: '../home/index'
					})
				}
			}
		},
	}
</script>

<style lang="scss">
	.swiper {
		height: 100vh;

	}

	.bu-sty {
		position: absolute;
		left: 0;
		right: 0;
		top: 1240rpx;
		font-size: 38rpx;
		border: 1rpx solid #ffffff;
		background-color: #ffffff;
		border-radius: 36rpx;
		height: 88rpx;
		margin: 40rpx;
	}

	.swiper-item {
		display: block;
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
	}
</style>
